from django.db import models

# Create your models here.


class Cache(models.Model):
    keyword = models.CharField(max_length=100)
    content = models.TextField()
    
    def __unicode__(self):
        return "[%s] Cache" % (self.keyword)

class PreparedProduct(models.Model):
    spname = models.CharField(max_length=255)
    sppic = models.CharField(max_length=255)
    sid = models.CharField(max_length=255)
    spurl = models.CharField(max_length=255)
    bid = models.CharField(max_length=255)
    mid = models.CharField(max_length=255)
    spprice = models.DecimalField(max_digits=9, decimal_places=2)
    
    def __unicode__(self):
        return "[%s] %s" % (self.spname, self.sppic)
    
